

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=auto>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/taotaogitee.gitee.io/img/favicon.png">
  <link rel="icon" href="/taotaogitee.gitee.io/img/favicon.png">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#447EA5">
  <meta name="author" content="Oscar">
  <meta name="keywords" content="">
  
    <meta property="og:type" content="website">
<meta property="og:title" content="罗涛涛のBlog">
<meta property="og:url" content="http://taotaogitee.gitee.io/taotaogitee.gitee.io/index.html">
<meta property="og:site_name" content="罗涛涛のBlog">
<meta property="og:locale" content="zh_CN">
<meta property="article:author" content="Oscar">
<meta name="twitter:card" content="summary_large_image">
  
  
  <title>罗涛涛のBlog</title>

  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4/dist/css/bootstrap.min.css" />



<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_ba1fz6golrf.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_lbnruvf0jn.css">


<link  rel="stylesheet" href="/taotaogitee.gitee.io/css/main.css" />

<!-- 自定义样式保持在最底部 -->


  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    var CONFIG = {"hostname":"taotaogitee.gitee.io","root":"/taotaogitee.gitee.io/","version":"1.8.14","typing":{"enable":true,"typeSpeed":80,"cursorChar":"|","loop":true},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"right","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"copy_btn":true,"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":false,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null,"path":"window.location.pathname","ignore_local":false}},"search_path":"/taotaogitee.gitee.io/local-search.xml"};
  </script>
  <script  src="/taotaogitee.gitee.io/js/utils.js" ></script>
  <script  src="/taotaogitee.gitee.io/js/color-schema.js" ></script>
<meta name="generator" content="Hexo 5.4.2"></head>


<body>
  <header style="height: 100vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand" href="/taotaogitee.gitee.io/">
      <strong>罗涛涛の博客</strong>
    </a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/taotaogitee.gitee.io/">
                <i class="iconfont icon-home-fill"></i>
                首页
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/taotaogitee.gitee.io/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/taotaogitee.gitee.io/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/taotaogitee.gitee.io/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/taotaogitee.gitee.io/about/">
                <i class="iconfont icon-user-fill"></i>
                关于
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
              &nbsp;<i class="iconfont icon-search"></i>&nbsp;
            </a>
          </li>
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">&nbsp;<i
                class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="banner" id="banner" parallax=true
         style="background: url('/taotaogitee.gitee.io/img/bg.png') no-repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
          <div class="page-header text-center fade-in-up">
            <span class="h2" id="subtitle" title="每天都要努力热爱生活！">
              
            </span>

            
          </div>

          
            <div class="scroll-down-bar">
              <i class="iconfont icon-arrowdown"></i>
            </div>
          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      <div class="container nopadding-x-md">
        <div class="py-5" id="board"
          style=margin-top:0>
          
          <div class="container">
            <div class="row">
              <div class="col-12 col-md-10 m-auto">
                


  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="/taotaogitee.gitee.io/2022/07/06/%E5%8A%A8%E6%80%81%E6%95%B0%E6%8D%AE%E6%BA%90/" target="_self">
          <img src="/taotaogitee.gitee.io/img/blog/6.png" srcset="/taotaogitee.gitee.io/img/loading.gif" lazyload alt="实现动态数据源">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/taotaogitee.gitee.io/2022/07/06/%E5%8A%A8%E6%80%81%E6%95%B0%E6%8D%AE%E6%BA%90/" target="_self">
          实现动态数据源
        </a>
      </h1>

      <p class="index-excerpt">
        <a href="/taotaogitee.gitee.io/2022/07/06/%E5%8A%A8%E6%80%81%E6%95%B0%E6%8D%AE%E6%BA%90/" target="_self">
          
          前言为什么要实现动态数据源呢？这次罗涛涛遇到了一个需要根据不同的业务单跟换数据源（也就是数据库地址），简单的比喻就是：管理员上传一套关于数据库操作的试卷，学生要做作业就需要操作数据库，那么用本地数据库就达不到效果了。而且就算利用多数据源的原理，我提前在后端写死也不符合设计模型原理，动态数据源就是为了解决这个场景出现的，可以说是非常契合的解决方案。 原理Spring提供了AbstractRoutin
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2022-07-06 22:44" pubdate>
              2022-07-06
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/taotaogitee.gitee.io/categories/%E6%8A%80%E6%9C%AF/">技术</a>
            
              <a href="/taotaogitee.gitee.io/categories/%E6%8A%80%E6%9C%AF/%E5%8A%A8%E6%80%81%E6%95%B0%E6%8D%AE%E6%BA%90/">动态数据源</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/taotaogitee.gitee.io/tags/MySQL/">MySQL</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="/taotaogitee.gitee.io/2022/05/15/%E6%B5%85%E8%B0%88Tomcat%E5%8F%91%E5%B8%83/" target="_self">
          <img src="/taotaogitee.gitee.io/img/blog/5.png" srcset="/taotaogitee.gitee.io/img/loading.gif" lazyload alt="浅谈Tomcat发布">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/taotaogitee.gitee.io/2022/05/15/%E6%B5%85%E8%B0%88Tomcat%E5%8F%91%E5%B8%83/" target="_self">
          浅谈Tomcat发布
        </a>
      </h1>

      <p class="index-excerpt">
        <a href="/taotaogitee.gitee.io/2022/05/15/%E6%B5%85%E8%B0%88Tomcat%E5%8F%91%E5%B8%83/" target="_self">
          
          演示这次演示的项目是由前后端分离再结合的案例 首先前端采用的是Vue框架，在前端完成之后在终端输入命令生成项目文件 1npm run build  运行结束之后会发现项目目录中多了一个dist的文件夹（如果你之前没有生成过的话），之后我们就可以把该文件夹里面的内容复制到后端项目中。  接下来我们要在spring-mvc.xml内对一些静态资源进行放行配置。 1234&lt;!--静态页面，如htm
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2022-05-15 11:43" pubdate>
              2022-05-15
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/taotaogitee.gitee.io/categories/%E6%8A%80%E6%9C%AF/">技术</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/taotaogitee.gitee.io/tags/Tomcat/">Tomcat</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="/taotaogitee.gitee.io/2022/04/22/%E6%B5%85%E8%B0%88-Mybatis/" target="_self">
          <img src="/taotaogitee.gitee.io/img/blog/4.png" srcset="/taotaogitee.gitee.io/img/loading.gif" lazyload alt="浅谈-Mybatis">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/taotaogitee.gitee.io/2022/04/22/%E6%B5%85%E8%B0%88-Mybatis/" target="_self">
          浅谈-Mybatis
        </a>
      </h1>

      <p class="index-excerpt">
        <a href="/taotaogitee.gitee.io/2022/04/22/%E6%B5%85%E8%B0%88-Mybatis/" target="_self">
          
          Mybatis项目流程首先，创建maven项目，导入相关依赖 123456789101112131415161718192021    &lt;dependencies&gt;&lt;!--        mysql驱动包--&gt;        &lt;dependency&gt;            &lt;groupId&gt;mysql&lt;&#x2F;groupId&gt;
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2022-04-22 10:21" pubdate>
              2022-04-22
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/taotaogitee.gitee.io/categories/%E6%8A%80%E6%9C%AF/">技术</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/taotaogitee.gitee.io/tags/Mybatis/">Mybatis</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="/taotaogitee.gitee.io/2022/04/21/Spring-AOP-JDK%E5%8A%A8%E6%80%81%E4%BB%A3%E7%90%86/" target="_self">
          <img src="/taotaogitee.gitee.io/img/blog/3.png" srcset="/taotaogitee.gitee.io/img/loading.gif" lazyload alt="Spring-AOP-JDK动态代理">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/taotaogitee.gitee.io/2022/04/21/Spring-AOP-JDK%E5%8A%A8%E6%80%81%E4%BB%A3%E7%90%86/" target="_self">
          Spring-AOP-JDK动态代理
        </a>
      </h1>

      <p class="index-excerpt">
        <a href="/taotaogitee.gitee.io/2022/04/21/Spring-AOP-JDK%E5%8A%A8%E6%80%81%E4%BB%A3%E7%90%86/" target="_self">
          
          默认情况下，AOP的实现是通过JDK的动态代理。简单的说，就是一个JDK已经封装的好的父类，我们只需要去继承并且稍做修改就可以啦。 首先创建业务代码 123456public interface UserDao &amp;#123;    public void save();    public void del();    public void up();    public void sel();
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2022-04-21 23:30" pubdate>
              2022-04-21
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/taotaogitee.gitee.io/categories/%E6%8A%80%E6%9C%AF/">技术</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/taotaogitee.gitee.io/tags/Spring/">Spring</a>
            
              <a href="/taotaogitee.gitee.io/tags/AOP/">AOP</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="/taotaogitee.gitee.io/2022/04/21/Spring-AOP/" target="_self">
          <img src="/taotaogitee.gitee.io/img/blog/2.png" srcset="/taotaogitee.gitee.io/img/loading.gif" lazyload alt="Spring-AOP">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/taotaogitee.gitee.io/2022/04/21/Spring-AOP/" target="_self">
          Spring-AOP
        </a>
      </h1>

      <p class="index-excerpt">
        <a href="/taotaogitee.gitee.io/2022/04/21/Spring-AOP/" target="_self">
          
          在我们实际开发中，进行业务逻辑操作之前常常会进行校验（权限校验、传输数据校验或者日志），那假如每一个业务逻辑都要用上这段代码，单纯的复制粘贴就会让代码显得很臃肿。Spring-AOP就是一个解决这类问题的方式。 通过配置，在方法执行的前后时间段要触发的事件，就不需要特地写调用去实现。 完整的AOP需要具有： 切面：事物方法放置的类 连接点：事务触发的方法，一般是你需要某个方法在执行时触发事务 切入
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2022-04-21 08:35" pubdate>
              2022-04-21
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/taotaogitee.gitee.io/categories/%E6%8A%80%E6%9C%AF/">技术</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/taotaogitee.gitee.io/tags/Spring/">Spring</a>
            
              <a href="/taotaogitee.gitee.io/tags/AOP/">AOP</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="/taotaogitee.gitee.io/2022/04/20/%E8%93%9D%E6%A1%A5%E6%9D%AF-Web/" target="_self">
          <img src="/taotaogitee.gitee.io/img/blog/1.png" srcset="/taotaogitee.gitee.io/img/loading.gif" lazyload alt="参加蓝桥杯Web省赛的小Tips">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/taotaogitee.gitee.io/2022/04/20/%E8%93%9D%E6%A1%A5%E6%9D%AF-Web/" target="_self">
          参加蓝桥杯Web省赛的小Tips
        </a>
      </h1>

      <p class="index-excerpt">
        <a href="/taotaogitee.gitee.io/2022/04/20/%E8%93%9D%E6%A1%A5%E6%9D%AF-Web/" target="_self">
          
          2022年是非常特殊的一年，不排除疫情的特殊，在蓝桥杯开设Web赛道的第一年，自知在Java赛道上毫无竞争力转战Web赛道，并不是说Web简单，只是我觉得我心里会更喜欢一些。 首先是前端中非常重要的一部分：样式、布局 样式中大多数还是比较常见的，这里我觉的非常有用并且非常生僻（有时候记不住） 12text-decoration:nonelist-style: none;  取消a标签的下划线以及去
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2022-04-20 00:01" pubdate>
              2022-04-20
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/taotaogitee.gitee.io/categories/%E6%8A%80%E6%9C%AF/">技术</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/taotaogitee.gitee.io/tags/%E8%93%9D%E6%A1%A5%E6%9D%AF/">蓝桥杯</a>
            
              <a href="/taotaogitee.gitee.io/tags/Web/">Web</a>
            
          </div>
        
      </div>
    </article>
  </div>





              </div>
            </div>
          </div>
        </div>
      </div>
    

    
      <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
    

    
  </main>

  <footer class="text-center mt-5 py-3">
  <div class="footer-content">
     <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>游戏</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>人生</span></a> 
  </div>
  

  

  
</footer>


  <!-- SCRIPTS -->
  
  <script  src="https://cdn.jsdelivr.net/npm/nprogress@0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nprogress@0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js" ></script>
<script  src="https://cdn.jsdelivr.net/npm/bootstrap@4/dist/js/bootstrap.min.js" ></script>
<script  src="/taotaogitee.gitee.io/js/events.js" ></script>
<script  src="/taotaogitee.gitee.io/js/plugins.js" ></script>

<!-- Plugins -->


  <script  src="/taotaogitee.gitee.io/js/local-search.js" ></script>



  
    <script  src="/taotaogitee.gitee.io/js/img-lazyload.js" ></script>
  



  








  <script  src="https://cdn.jsdelivr.net/npm/typed.js@2/lib/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var title = document.getElementById('subtitle').title;
      
        typing(title);
      
    })(window, document);
  </script>















<!-- 主题的启动项 保持在最底部 -->
<script  src="/taotaogitee.gitee.io/js/boot.js" ></script>


</body>
</html>
